{% extends "base_restau.html" %}
{% load i18n %}

	{% block header %}
		<script type="text/javascript" src="{{STATIC_URL}}javascript/jquery.js"></script>
		<script type="text/javascript" src="{{STATIC_URL}}javascript/display_stars.js"></script>
		<link rel="stylesheet" media="screen" type="text/css" title="Essai" href="{{STATIC_URL}}css/stars.css" />
		<script type="text/javascript">
			$(function() {
    			$('span.stars').stars();
			});
		</script>
	{% endblock %}

	{% block titre %}{% trans "Récapitulatif" %}{% endblock %}

	{% block menu %}	
		<ul id="navigation">
		  <li> <img src="{{STATIC_URL}}images/26.png" alt=""/>{% trans "Civilité" %}</li>
		  <li> <img src="{{STATIC_URL}}images/27.png" alt=""/>{% trans "Invités" %}</li>
		  <li> <img src="{{STATIC_URL}}images/32.png" alt=""/>{% trans "Questions" %}</li>
		  <li> <img src="{{STATIC_URL}}images/24.png" alt=""/>{% trans "Réponse" %}</li>
		  <li> <img src="{{STATIC_URL}}images/30.png" alt=""/>{% trans "Résultat" %}</li>
		</ul>
	{% endblock %}
	
	{% block content %}
		<br><br>
		<h3>{% trans "Vos choix" %} (<a href='{{ lien }}'>{% trans "recommencer le sondage" %}</a>) :</h3>
		{% for rep in rep_list %}
			<p>{{ rep.0 }} <span class="stars">{{ rep.1 }}</span></p>
		{% endfor %}
		<h4>{% trans "Invités ayant répondu" %} :</h4>
        {% for invite in invites_list %}
            {% if invite.presence %}
            <p>{{ invite.email }}</p>
            {% endif %}
        {% endfor %}
        <h4>{% trans "Invités n'ayant pas encore répondu" %} :</h4>
        {% for invite in invites_list %}
            {% if not invite.presence %}
            <p>{{invite.email}}</p>
            {% endif %}
        {% endfor %}
        <form action="" method="POST">
        {% csrf_token %}
        <caption ALIGN=bottom><input type=submit class=submit value=Resultat></caption>
        </form>
    {% endblock %}
        